Changes to mirror the objective functions of my previous matlab sparse autoencoder.