Update notes for submitted changes

* The vm_state should not be modified until the task is complete.
Update notes for submitted changes

* Fix variable referenced before assginment in vmwareapi code.