Rewrote large parts of section 3.2 Transformations