added simple javadoc