OpenNC Slave Main, single file to replace root prim scripts

Merge  of the 3 scripts, removed unused code, fixed chaining point
errors