Object rewrite

Added search and count function.... Initial implementation of search dialog.