Robotic pill will better diagnose and treat various maladies