Cleaned up code and sanitized formatting

Removed old unused functions:
   __print_sub_progress_issue()
   __print_sub_progress_ok()
   __print_sub_progress_failed()

Converted __do_extract() to proper format

Lots of code cleanup and comment simplification/standardization