added export shell script, added NULL checks for samples that fail to load from disk
working on getting export thread to actually write to the file
fixing build
export is working
merging with origin/master