Fixed some errors. Patterns now work with the ExcelReader, functionality tested.