clean commands.c
code cleaning and better interactive output