improved topic function\'s documentation