Some tidying.
Seg coeffs are now properly calculated using correct core coeffs.
Everything seems to be working, hope I haven't broken anything.