Added a visualize_residuals function. Added find_model function to find a model matching some parameters in the accepted or rejected models from an av_state.