Add logging system when compiling coffee
Tidy code