Split SimplePattern.ts into SimplePattern.ts and src/Pattern.ts
Updated PatternPlugin and Pattern matching