cleaned and added function to generate step function
i did some cleaning on the tv.py file, and added a function to generate a step function given a desired threshold.
i did some cleaning on the tv.py file, and added a function to generate a step function given a desired threshold.