Added forgotten intro documentation.
Extended the command loop, configure for (in)active history.
Reworked the buffer handling a bit to ensure that the history will not contain the trailing CR.