corrected SVD

went over all the SVD math again and made sure it all agrees. also
checked templates still agree with Matlab