reimplemented error handling with return types in shmManager / thinker so it goes up to main | moved  singal handling to main (exception is start_thinking) with nested functions | added CTRL+C functionality | added c99 to makefile so for-loops work | removed global vars from shmManager / config