added stacked autoencoder, tanh