format search results, closes #1