Add "clear" command and parameter for "history" command.

1.Correct the error in function "itoa" ,which should be "n<0 " rather than "num <0"
2.Support parameter for "history" command ,ex: "history 2" could show the latest 2 commands.
3.Add "clear" command to clear the screen