Updated copyright notice as pointed out by OlliV.
Fixed a few minor warnings.