Add comments to #include statements
Create error-checking wrapper function for malloc()