check return code from write
Merge branch 'master' of github.com:don/Ndef