Modification to find local beam intensity

Should produce a plot of intensity as a function of position along slit (x) and position from slit (z) all in mm