adding notations to and simplifying lmsvd.m