Changed licence to GPLv3 and added file headers containing licence information.