allow router accept array regex, and add documentation to router and input