Separate format definitions
Implemented addField
Implemented add field menu; moved field functions to separate file