Fixed bug in add email command.
Set the foundation for command functionality.