updated motl markup code generator