Refactor: History#load,#save
Modify `pwd` command in the root dir.
Extract Method
Define CommandError and raise it.