Updated comments. Added javadocs.
Updated comments. Added javadocs.