bug fix reading training file - had to call 'n.matches()' twice?