Initial wind direction calculations. Some code commented out due to missing dependencies. Minor formatting changes and conditional syntax fixes by akling.