Chapter five final commit

configure debug mode and dynamic route