updated all files to follow codestyle and javadoc rules