Initial commit. Wrote some of the transformation functions.