Added small fixes on task logic.
Changed .gitignore