changed some formulas
added function to export as csv and copy table to clipboard
added export and copy to clipboard buttons