adding comments for java code