added Javadoc comments