Added Fan control code
Modified Fan cotrol code and On all device code.
Conflict resolved