Added docstring for PGH.
WARNING: untested! Adds new functionality to check for failure of SMC algorithm and recover.