Added most the functions, still need to make it run together
Adapted scripts to run using fecgsyn data
Extraction working