Add support for vm-move-after-reading
Mereged Ryan Kavanagh's patch that adds a vm-move-after-reading variable.  Some minor bug fixes at the same time.