Hi ! the type of stool and urgency to pass stool at times may be a symptom of some kind intestinal infection specially amebiasis which is very common for those who eat frequently from outside home. You must get your stool tested for ova and cyst, and get the infection treated by your family physician if it is positive. However the incontinence what you have mentioned needs to be investigated into. The discharge could be due to undetected hemorrhoids . Are you chronically constipated ? This can also cause the stool to form a mass in the rectum preventing complete evacuation and sphincter malfunction, and some liquid stool might pass though the sides staining your panty. To rule these out , you I would suggest you to take an appointment with a general surgeon of your area who after examining you clinically, can suggest you on the management. Good luck.