Added a result history to REPL

.$ turns the history in $ on/of (toggle)

$ is an array containing the history of results. Every time a command is executed it is unshifted onto the array.