Modified alenkaExecute to work with Antons changes.
Changed most exit() calls to throw (string) for better error recovery.