Adding functions export for DOT; Refactoring DotExport code.