Added private function to retrieve Case ID, optional param in add() method to return Case ID instead of stdClassObject