Added xixixao great coffeescript modifications - to enable generators.