Improved CSEG and SSEG; fixed minor exception in CSEG.
Commented out unnecessary debugging thing