implemented .history command in client