Added Javadoc documentatin