Bug fixes in HFI_plot.pro

Found a few new bugs as people are using HFI_plot.pro.