sxacl: major code cleanup and other improvements (bb#560)