Tidy up a bit, add comments and move transforms setup to a separate directory