Introduced Mark module
Refactored main.coffee, added genRenderFns module