Documentation

Also remove classes that were not used.  Add error classes to
create an inheritance tree for errors.