If I switch the monitor and run a program, the monitor isn't switched back when the program ends.
This is a limitation of the current version. You can usually work-around it by creating a batch file. For example:
start /WAIT vidres /H800 /V600 /S /M1 /Q /X"Notepad.exe"
vidres /M0 /S /Q
The first line above uses the Windows "start" command to run VidRes and waits for it to end. VidRes sets the second monitor (/M1) as the sole desktop monitor (/S) and changes it to 800x600 resolution and in turn runs Notepad and waits for it to end. When Notepad is closed, VidRes closes and the batch file processing continues to the second line which uses VidRes to reset the sole desktop to the first monitor (/M0).