Bug fix for aqp
Correctness fixes to error bars
Merge pull request #18 from sjyk/aqp_fix

Aqp fix