Fix checkstyle errors

* missing copyright header
* TABS!
* trailing whitespaces
* a line too long
* missing javadoc comments