Fix code style and javadoc.
Add URIs to javadoc.