reworked basic functions for Java class generation