Fixed spelling mistake in `module.exports` and potential bug.
Removed rouge debug code.
Added assert as a dev-dependancy and wrote first test.