finished implementing microclimate algorithm
and fixed few many bugs