Stockholm format parser/writer

This is in the new parse format that @ElDeveloper created in #235 so merge his first.
Thanks for catching this! Fine to leave as-is