created and added javadoc