Fixed output filename only updating when format was changed, renamed some things, added fieldattrorder to examplefile