converting main to coffeescript
adding makefile