fixed config.c | fixed shm | cleaned parseArgs | replaced printf with perror