Improve performance of the UUID matcher by using a pre-compiled pattern

some minor Javadoc improvements
modified the test to use constant names