mplementing set slope and set current command and debug

Change-Id: I742d60690e0ebaa4c64ee018ad62366f064e0565