Remove some unused code.
Add copyright headers to some .java files that were missing them.