Major refactor and cleanup. Now includes a true/false toggle for debug mode (debugMode is true by default to show off all that console loggy goodness), use of prototypes, and better separation of methods.