My pathtracer written for uni is now on github, in case anybody wants to browse through the code: https://github.com/TheSandvichMaker/BUAS-Pathtracer