Made n an argument
Added plotting of p-values