added basic javadoc