Fixed a bug, and updated the licence to GPL V3