Basic GUI class. Also fixed a bug with CompositePatternMatcher