Code refactoring
Fixes bug
Changes smtp_config attribute
Adds sender attribute
Adds error and fixed messages attributes. Adds message templates