bugfixes in search algorithm; further documentation and included testdata