Added find previous functionality in commandLine

Added stacks to see previous commands in commandLine by pressing up/down