implemented test for windchill calculation, and minor refactoring