Licencing

Adds and updates licences for the majority of code files.