Add tests.
Add package.json
Fix null read bug and add module.exports.
String support for writes.
Fix tests on pkg.json.
Minor optimizations and change default length.