Fixed jameses style suggestions

- No returns at end of functions ( I thought it was required, oops)
- Fixed type
- Separated out creating transformations from one line to three