commented the code

commented/reformatted all java classes