Enhanced script functionality

Previously, one had to wait until the complete script was fully executed in order to see the results. This new solution makes it possible to view the result of each command-expression continually as they are automatically executed. This makes it easier to see how far the execution has come, and how much is left.

Scripts will also stop executing if syntax errors or other logical errors are detected. This makes it easier to locate possible errors in a script.