now using node-hid events instead of read loop.

refactored code to be more readable.
Merge pull request #5 from rdepena/feature/node_hid_events

now using node-hid events instead of read loop, refactored code to be more readable.