Adds debug file, fixes package json versioning and fixes submodules
npm version bump
Fixes error handling in read buffer