Code formatting (tabs -> spaces) and Javadoc.

No functional changes