Extract methods for leaf and branch nodes.
Extract small functionality to separate methods

extract addHypothesisNode method.
extract setVoxelNodeCPT method.
extract addVoxelNode method.
move some functionality to exportNetwork method.
change methods order
Change methods order
Remove unnecessary handlers