added example code
Make emacs mode as default. It is same behaviour between other
Term::ReadLine::* modules.
fixed simple bug in addhistory method