CASC-219: updated javadocs and added map to keep track of pattern matchers