reads m and p files from a directory