Major bugfix and other changes

No more memory leaks. New log action in writer.
Both training and testing through experimentDriver. Removed useless
files.
Probably even more changes.