Documentation and clean up composeMatchers function.