Fix bug relating to output filename
Add delete, update version