Added some Javadocs for functions, classes