Added javadoc to main class