added link to source of algorithm for getAffineTransformation
clean up