Portability fix
added configurable destinations
moved data files to tmp
cleanup
actually cleans up now
fixed most of the bugs that I just introduced