added gather and plot to simulation script
added some comments to simulation script