Added function to check if file exists
checks for existence of tasks.txt and creates file if it dones't exist