added changes for multiple samples
added DM based pipeline