-write_data_to_excel is now context aware and checks for headers -fixed issue where headers were duplicated when appending data