Change licensing
Fix some warnings