Check out this thread and see if it answers your questions or gets you started:

http://www.bdsmlibrary.com/forums/showthread.php?t=3061