Comments and Javadocs were added to the code