Undo accidentally commited debug changes.
Fix warnings and minor problems.
Fix problem with binning distance.
Config adjustments.
Fixing problem with negative z.