Fixes the crc test
Adds mostly working writer... only crc is wrong
Renames masked_crc to native
Fixes write-chunk-length