Added function savedata

Allows for saving of segments or other smaller pieces of data for
analysis. Saves in subfolders of ANALYSIS_DIR
Automatically adds ANALYSIS_DIR to search path

+ subfolders. Allows for easy loading of data
Updated the plate extraction

Now outputs times as well and uses the savedata function to save the
data in the proper place.