Added support to display available types based on searchtype, resolving issue #22