added errors and test stuff

may have accidentaly put some results in test stuff but too late to
change it now.  test stuff was a lot of work so im still working on the
low level design stuff