updated for well-formness and LDmatrix input layout and minor text changes