Remove ./ from fileName string.
Added with statement for task object in createTask. Also renamed a couple of variables.
Added TODO for muliple patterns support.