Added and documented prepend_affine functions