added debug controller; commented logic out of routes. Added constructor to BaseController to correct Controller not found error