update to reduction script
added arrays to opttree
updates
bug fixes ans additions
bug fixes and updates
updates