Scripting API

work in progress documentation