Added and fixed Javadoc comments.