added comments to routes functions