Bugfix: readPatterns. + print added to check reading