added debug mode and comment
added a router for exportExcel