fixed router,warnings,error

moving on to setup database and writing core applicaiton