- debugged patch_wise constraints. Rearranged switch branch order. no major changes.
- removed console log from nearest neighbour search
- changed generateCli and generate to use map instead of vector