Added ability to load pattern definitions from a YAML

load yaml of patterns and store them in a class array upon init.