1D code updated

Lots of updates to 1D code