Possibly also something that cross-references all the different GOSUB commands and the FLAG commands to the places they're checked. Then someone could go through and give them friendlier names. Also, you'd want to cross-reference all the text pointers to the text they point to. After that, it shouldn't be too hard to write a tool to do the reverse and pack it back in the original format.