refactor: Change `storeResult` to `write`.

fixes #21