Doctor arrested for 2 deaths, 398 felonies takes stand