<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_roadmap_doc(dat, opFile):
 """ takes a dictionary read from a yaml file and converts it to the roadmap documentation """

    op = format_title('Roadmap for AIKIF')
    for h1 in dat['projects']:
        op += format_h1(h1)
        if dat[h1] is None:
            op += '(No details)\n'
        else:
            for h2 in dat[h1]:
                op += '\n' + format_h2(h2)
                if dat[h1][h2] is None:
                    op += '(blank text)\n'
                else:
                    for txt in dat[h1][h2]:
                        op += '  - ' + txt + '\n'
        op += '\n'

    with open(opFile, 'w') as f:
        f.write(op)