move malloc initialization to main.c. Remove explicit location specifiers from array declarations