Added debug mode enabled by using --debug true in program argumetns