Updated javadocs for all functions