Added debug and skip_plots optional parameters to main hg_proc function to make debugging easier and faster