Add legal headers, code compliance checker

Please review and test
isn't it ["lesser" GPL](https://www.gnu.org/licenses/lgpl.html)?