c_tec_export

Fixed the outline of the code, deleted obsolete stuff and added the
function that adds the export folder if it doesnot exist.