added .gitignore, added writing of tasks to json file