added comments for java doc