added functionality to parse arguments to send emails to a user or to an entire group