Moved code to read a samples file to the decompose_imf_lib.