Added pattern property for obtaining kmatch pattern

This adds the "pattern" property to the K object, and it allows a user to obtain the original pattern (before compilation)