Sieve fixed warnings and improved text search

Next step is an attempt for multi threading