creating plot functions for retrievals
merged simultaneous changes
created a function to update profile data according to a state vector
created a function to update profile data according to a state vector