Fix history commands
Remove unnecessary to_s call
Another small refactoring
Fix `set` and `show` help