(Nearly) working creation of PGN from internal format.