Added term-document functions to lc_data and updated lc_main