Stockholm format parser/writer

This is in the new parse format that @ElDeveloper created in #235 so merge his first.
Though it probably makes more sense to move these to the class-level doc string, not have them in this function.