Bug in sample, E-mail support, unified output directory

- Fixed a bug in the sample
- Added support for recieving a mail notice once the job is complete
('Mail' option for WGexec)
- Output files (*.e and *.o) are now stored in an 'out' directory