added promode.c and promode.h files