Fix for pre 10.18 versions of node
modify day and seconds inputs for moment.js
test/streamTests.js

added test suite
New tests
Store sorted result in file