Add missing license headers. Cleanup some whitespace.