fixed a couple of bugs and added 'category' as a search parameter