Modified newlogdata to use objects instead of relative array indices, fixed a typo in index.js.