Cleaning up script/
Fix saving commands to history