Added Javadocs to all methods