generate toString() automatically (#131)

Added a basic `toString()` generator to ClassDefinition. The details may be changed, though.