Moved geometry conversion code to the conversion file.
fixed indentation.
Made writing to UVs more robust. Writing to UVs isn't really possible without installing an operator on the cluster. I've simply stopped it crashing.