Formatting and optimizations

Added variables for sin/cos dome_tilt reused values
Fixed use of sin/cos variables for rotation
Fixed some spaces/tabs just for consistency