updated export class

switched up export to download file instead of saving to server. Much
safer.