AutoEncoder Class. Still not tested. Also some minor changes in other files, nothing particularly important.