added coffeescript snippets and a structure change