add some threading documentation