Adds Repository function for fetching top N results

- Fixes logging of debug messages, using NSLogv