Fixed bugs in ScriptView.java; Cleaned up some comments.