Added delay to smoothing and changed the switch off to continue sending black
Added some code comments