Added pattern property for obtaining kmatch pattern

Added the "pattern" property to the K object so that the user can obtain the original pattern