Updated to Moonscript 0.2.4 and used some new syntax. Some refactoring and code improvements.