add export format enum and allow export to output stream
Merge pull request #28 from martiner/report

add export format enum and allow export to output stream