Switched from better-assert to assert.
Added toJSON/fromJSON.
Fixed toLedger formatting bug.