Added a sample and fixed a few CoffeeScript bugs