Fixed makefile for labmachine running
Added deamonizing code