modified:   main.rb
refactoring
fix char corruption
enable to send email