Added untested possibility to undeploy opened model. Refactored given code to execute opened model. Added further plausibility and reachability checks. refs #13