[[ EditScriptChunk ]] added docs and proper errors