Coding standards

Code tidied up for cube transformations
Code tidied up