Added fig_export function to private folder and removed old path manipulations
Seperated plotting into seperate function and save data files