Object rewrite

Added functionality for replace, find next/previous menu entries.  Minor bug fixes.  MainWindow UI can now be accessed anywhere within code by using MainWindow::instance() for easier interaction between dialogs.