refactor parser code and tests

Refactored the Parser service class to make sure the calculations are testable at each stage and be thorough about the overall calculation of temperature and humidity