Loading of p value fixed
cleaned code