Several small improvements to tf_dics

Changes include:

* better exposing APIs of component functions
* adding description in the docstring and comments regarding implementation
Move noise CSD calculation outside of time point loop
Several small cleanups