Added code to allow the cooling fan to be turned on at a specified layer.  TODO: also turn
it on when the cross-sectional area of a layer is less than A sq. mm.