update Makefile
implement logging module
fix: sleep for maxiumum 1 sec while waiting for proc.poll()