Fix issue #22: Edit command doesn't save changes.

Fix #22 . The original codes only updated the `Dictionary` term locally. Fixed by directly updating the file through already existing functions: `RemoveTerm()`, `AddTerm()`, and `SetScore()`.