added a few codes to main.cpp and Pull.h.