Fixed API /task/add method, small changes in Task model