Added a few small checks to the transform methods in hopes of making it lighter. Also removed some old comments