Improve scripting docs and demo.