Added class for generating random numbers
Fixed buffer not getting flushed to disk on close()
Reverted return type to byte[]
Added call to constructor for coverage
Added tests for FileIO