added function for output of laser intensity, moved makePlots before propagation