Added license, gitignore and gridwriter.py