normalized router to use single quote, two spaces, added comments, and refactored route cleanup