changes for windows paths and proper reading of binary dmat files