Added method to extract email address. Bug fix.

Added method to extract email address. Bug fix.