Added a parameter tuning script.
Bug fixes in parameter tuning and added a stacked denoising autoencoder pre-trainer.