added methods for file saving and deletion of files and folders