Fix copyrights, headers, and some whitespace