Fixed javadocs and formatted source code.