Code cleanup & fixes

Cleans up some legacy naming, fixes errors from codebase migration, and
should now have efficient (and working) error backtrace printing.