Fix small redundancies and add javadoc.