Add csv logging format. Closes #13