Random fixes and javadocs.