added moire histos and profiles for the residuals
corrected bug on the x cut
implemented max entry number in the tree, steareble from config file
added highest neighbor option for the hit charge