Refactor to PEP8 iter2 (not complete)
Doubles now use Writer object to write