Added javadocs for pertinent methods