added code to use laser pulse
moved ham.out to computeGeneralOutputs, which is now done before time propagation