Fix bugs in delete function. Implement rename_file & rename_folder
functions