Whitespace changes.
More helpful error messages in error-checking memory functions.
Catch SIGABRT and throw Windows-style exception, attempt to write traceback to a file if possible.