Added a patterns method to the router
Fix spacing and order.