Change the way of calculating FDR.
Fix some bugs.