Lots of fixes

- Fix errors when generating new config
- Make maxBranchDepth accurate
- Fix chunk problems with large BO3s