added fileName and fieldName to file object constructor