Updated patternMatcher to except and return an error (this is so unit testing works properly as well as returning some better details), added a docstring at the top which apparently I chopped out at some point, mostly this was general clean up. Added two new unit tests that cover issues where either the key for the patterns or paths is an alphabet character. Also modified some function naming because it was not consistent