added email confirmation / optional upload to AWS S3. / remove intermediate files