Added Javadoc for the majority of the methods.