added the ability to add new items to the list and overwrite existing file