CLEAN: Documentation and style improvements.
TST: Added test cast for large matrix (M=11).