Parser modified to extract values of the nx, ny, J, J1 correctly