Added variability to folder zipping and a new function parameter to sendEmail