Merge pull request #6 from isao/develop

invoke callback after we're sure all writes are complete
Merge branch 'master' into develop