Object rewrite

Added search and count functionality.... Initial implementation of search dialog.... Basic search engine.