Add gpl 3 license to code