added coffeescript support
some bugfixes