Work on debugging SIGSEGV, added some convenience scripts.