code cleanup

another big code cleanup, pretty much all object oriented now and no
globals. main classes are show, show_results,
segmentation_configuration. Should be extremely easy to use/understand
now