Oct 16th
Extremely dangerous bug found: Application is off when P != 0.5. 
Compute true values by hand, keep testing. 

Oct, 19th
P != 0.5 bug fixed