fixed extract_events_from_dir method to not make duplicates if run twice