clean up whitespaces and comments
should not be there
handle properly when no results
tests for search API