Latent Variable Models and Beyond: An Exploration of Variational Autoencoders