Wrote all code (except headers) for BinaryWriter