Added error messages.
Preliminary daemon working with tornado.