add updates to auto encoder code and anomaly detection code