read_KMR function

Read KMR from a path