Modification in stat.h and medpolish.cpp