converted collections to coffeescript
refactored all subgens to coffeescript