Some fixes for the new write operations

Closes #78, #79, #80 #85