Change add and update logic

Change the logic of add and update. Add is now term to existing. Update
replaces all terms.