Uses fraction threshold as an input to remove_ppi function.
Plot constants now at top of the code rather than at the bottom.