started working on extract_output
adding output path in main
bug fix for UID extraction