Added new header and Javadocs to methods.