WIP: tdc001: More docstring + some logic fix