First commit of the diagnostic and fit plot functions