Removed unnecessary NULLings of pointers, explained kept ones.