Added ability to set a pv from command line on first run.
Added some comments