Updated help to match current README.
Added NULL check on pointer returned by malloc().