add functions to gen_prob.py
implement write_topic_csv

Write down csv file of extracted topics.