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.