Added basic javadoc.