Simulation main fixed. Clock added for the simulation. Preprocessing condition added into main.cpp to avoid socket initilization