Terminal

This code closes #47.  I copied and condensed the error list from applib.