debugging
clean up all uses of realloc to be safe
bunch of common places to catch out-of-memory