Added stdlib.h and string.h for stricter adherence definition of malloc, strncpy, strlen and memcpy