memory cleanup
Allow multiple rawdatadir (i.e. DICOM source)