fixed write code in most cases
Merge pull request #35 from przytads/upstream

added new specification number
moved field write code into a method
fixed debug info in case of new strings
Merge commit 'c30e26009c09aa61162d313e30ebda2ece75ef66'