Additional safety-checks in vmi_write
Merge pull request #189 from tklengyel/write_safeguards

Additional safety-checks in vmi_write