Adding build and execution of modeled query and fixing minor GUI
interface bugs