Fix exiting the shell with command-D.
Add since YARD tags and fix docs issues.