Modified the report generator API to return byte[] rather than file descriptors