add option to send emails to the responsible person, fixes #295

this PR does some refactoring, and then fixes #295.