added Javadoc to submission