fix whitespace formatting
fix javadoc formatting
add missing license headers