Cleaned up torus function and fixed texture issue.