Remove the lastMatchIdx etc. Fixes 48
Merge pull request #53 from jviereck/fix_48

Remove the lastMatchIdx etc. Fixes 48