Add --output option.

This PR allows to write reports to the user specified file for future processing.