The file is completely generated in the scratch code from raw byte data and uses base64 encoding. This means that generating any kind of file is viable this way. CURRENTLY only generates a debug text file containing printable ASCII characters in order. The download works from a webpage encoded in a data URI set up to automatically download the file. I will likely create a hex editor based on this technology.