changed fdr calculation to match qvalue definition and general cleanup