rewrote tests to stretchr/testify/assert
renamed CloseFile to Close
added simple writer test and benchmarks
added WriteInt32 benchmarks