Editing the TM file with a custom client. not Trados studio

Hi,  I would like to develop my own web service that would only utilize TMs (Translation Memory) Files to find matches for translating content.  If a match is not found I would like to enter a new translation and have it saved to the TM.sdltm.   Does anyone have any advice, samples, or documentation on how to make these calls and edits to the TM.sdltm file?  my source is in C#