Added helper functions for visualization and handling csv files