Bug Fixes and Scripts to run segmentation

- fixed compilation issues
- added scripts and a demo to easily get started