Add legal headers, code compliance checker

Please review and test

This is a WIP; the warnings it currently displays are part of the test (more or less).