Added LICENCE and notices, as well as some PEP8 fixes.