Giant pile of fixes

Fixes Issue 127 and revamps error reporting everywhere. Validated on two computers, three clusters, and a server.