Added command history display functionality