added export option to Rdata file