Add checking of successful compilation and execution;
Add checking for recompilation of model;
mos file has static name "script.mos" now;
Refactoring.