Added buffering logic for files not supporting streaming.
Added app.config.