Module 13 copy edits

Copy edits
Fixes bugs writing to file handles