Refactoring to email sender
Fixes for warnings about documentation and references
fix configuration for build