polished up the error messages and UI messages and switched off debugging. Going
to submit this version.