add closures and final touches
Merge pull request #7 from gr8workshops/ScriptingUpdates

add closures and final touches