made feature generator callable via xml rpc, implemented topk search, some refactorings