Added a shaft component that follows the same set of equations you define for the thread. This is all overkill to define a nice, simple cylindrical threaded bolt, but I just couldn't let it rest. :-)
This is actually pretty clean code, feel free to take a look. Also, since it compiles fast, experiments are easy!
If there is enough interest, I could make a library version?