made email to doctor work, other changes