Updated version of Pseudospectral method 1D code