add gender autodetection, add tests, refactoring
Merge branch 'master' of https://github.com/quozd/NPetrovich