Plaintext patterns

Adds support for plain text patterns files.