added functionality to write out to xlsx file via xlsx package