fixed the gemfile bugs and added a to the task controller

sorry the gem file was incomplete.