modified java classes to be run from main method. added some folders