Added json metadata contruction to analyze function as well as adding time interpolation function to _color_features_for_segment. Also some other minor improvements.