Corrected typo bugs
Added stddef.h include for NULL