Patternfiles

Adding patternfiles feature