strcpy replaced, correct includes added