added new search class

- replaced all search functions by a class
- added paging