made clearer error message in gensgd, fixed minor stuff in svd.cpp