add comments on routes.js and fix format/spacing