improved Makefile: more automated config
init commit of main.c file
added test_connect target to Makefile