added command history

added a quick and simple command history, so up/down arrow keys let you navigate previously entered commands :)