[MOD/FIX] Completed I/O rewrite to use streams instead of byte-arrays.