Added file object class. Rewrote code for processRawFieldData and checkPostFieldData to utilise new class and better cope with multiple files