Added input and output format options to TMaze. Added generic support for logging evaluations.