Removed unecessary files. Moved test-script to NPM. Added Sinon spies for testing the event emission and fixed its issues. Added code-coverage testing.