generate toString methods for all classes