add basic tests for the CSV parsing
add docstrings for csv export functions
remove unneeded user query