Add legal headers, code compliance checker

Please review and test