Licence notices in every file. Fixed line endings in main.cpp