created class to handle data IO

moved the export to csv and copy to clipboard logic to methods in a new
class called DataIO