Created javadocs for functions.