work on OOP segment class
Merge remote branch 'origin/springCleaning' into springCleaning
further work on segment and kernel classes