fixing issue #97 and some cosmetic error output updates