Adding license notices at the top of modified files
Fixing warnings