Finalised summary generation implementation.
Need to develop summary element selection query script: domain parameter now holds list of summary elements.