Adding commands to the history for replay, etc (closes #3)