Fixes #113 by throwing an exception when it can not create a file. Also ...

...cleaned up some error messages. There is also a fix in there for the controllersDir option, it wasn't looking at the right option so you could pass a directory and it would ignore it.