Specialisation of ops and tidying up.

Tidy up per kibit suggestions.
Specialise 4-dim matrix ops.