Fix config file
Fix requiring of lib files
Use Mail object in specs