Implemented s_check(), simplified s_add(), and added include for string.h