refactoring. various fixes for exception and error handling.  tidied up aphorism display a bit