#issue 26 Wunderground
moved functions to module, cleaned up a bit.