Major rewrite to support multiselect
Updating examples