added in some code to visualize sparse autoencoder weights on MNIST data