Use 'git diff' instead of diff

  - remove unneeded functions
  - add clear and toggle function
Support clear function
update document
Merge branch 'use_gitdiff'