Commented a few files.
translated to javascript - still needs full review/commenting
Merge pull request #1 from willhempy/master

Translating Coffescript