adds variable speed to the fan

It needs some fine tuning but the basic idea its there