Updated the diagnostics sample to work with v5 on master.
Refactored - removed the old method for Init
Added an example for adding a new step for outgoing pipeline that illustrates a try--catch.