added ThermometerCheck and tests
process lines with basic fold instead of map