Merge pull request #140 from r3dunlop/newver

fixed a few errors and removed BGOs
Merge pull request #141 from r3dunlop/newver

added clones array tester
Fixed thread problem in AnalysisTreeBuilder
updates to autoeff, gain function might be broken