fixed update and file bugs, added file delete functionality - mjm