Changed perm P values and cleaned up