unexported sorting structs
unexported some internal consts
unexported internal pattern consts
unexported header parsers constructors
unexported router constructor
added doc