added design doc for threads