Fix repr: don't print N, fix up n if N is set
Typo in max matching; also, just exit on out-of-words condition