Added Command History saving and loading