bug fixes and a new parameter directory to deletedfile.py