Fix restarted sampling
Add cumulative posterior E function
Correct theta update in popsamc and samc