changed logging

the log would have have had a the column title printed every loop which
is not desired. removed from loop and placed prior to the loop so only
written once as a header.
Merge pull request #5 from ugracing/correct-logging

changed logging