Added comments + changed from analogWrite to digitalWrite