Improve dialogue and header file

Made some improvements to "dialogue.c" and "wop.h".