updated initial SVD code, not finished yet