update the params function.
update the getPWM function.
update the new save function.