added declaration for weather_code function
I added code to create a weather code we use with our Accuweather data. I also tightened up the code a bit and formatted all output to stderr.
Merge branch 'weather-fixes'