minor clean up
added new search by category
added rivets binding to search
raven now gives max id