adding the main.coffee and doing some quick fixes