Changed license to GPLv3

Changed license and added copyright notices in source files
modified .gitignore