fixed a bug in pgstat for low counts
fixed bug in prior
fixed bug in CPL