Added javadoc comments

Commented code