Refactored the 'm-v-vm' stuff a bit. Replaced prints with logging. Fixed formatting.