Got basic output writing working. Only writes out events. Doesn't add
any MAKEINSTANCE or TLINK tags. A little buggy on whitespace.