Fixed SVD renormalization and loop SVD, and added loop contraction step
Tidied up a little and fixed loop
Correctly typed m_A, m_B
Fixed various
Merge remote-tracking branch 'benlaurie/master'

Conflicts:
	trg-s3.cc
uint8_t is too small.