Added javadocs for all methods; fixed class javadoc