fixed compilation errors in the Daemon class
added a method to create a ResultT[IO, A] from a Task