Small Tweaks

Few changes, implementing line by line script execution method.
modo.write throwing exception with headless false.