Changed f.write() methods to abbreviate transaction type