changed to write and removed whitespace
produced the prettiest output for me...
Merge pull request #29 from ullmark/master

Cleaner Output