Doing some refactoring, and adding complete tests.
Remove accidental debug log
Added homepage to package.json