Add more tests, some refactorings in KgrepEngine, fix misspelling in README.md