Added some more description
Placed csv-reading part into its own function