mesured the road times and cleand up the code
cleaned up code added file for helper functuons and put the Senario depended things in an own file