Fixed bugs in ScriptTuner interface

Script tuner interface can be considered funtional and complete.