Code cleanup to avoid all the warnings
Added Include string.h for memcpy prototype