add comment to common.h
error handing for malloc/fgetc - #25