Add license header and some QA improvements
QA improvements