Fixed minor spacing issues and refactored according to JSHint suggestions.
More refactoring.
Added .gitignore and Makefile to make my life easier if I have to move to another dev box.