fix coil writing for test purposes
Merge branch 'master' into ProtoCleo