Dialogue extract

This is the first initial version of dialogue extraction.