moved memcpy and memset to a new file
made an main.c and a init.c