aggregate for multiple outputs
Merge pull request #8 from vlimant/multiple_output

aggregate for multiple outputs