Fix vid command and add more options
Fix command line history