allow overwriting of patterns
Merge pull request #5 from natlownes/patterns-to-object

allow overwriting of patterns