Added a random byte array generation function.
Added open/close status for files which are checked on file operations. Fixed a copy bug in file write operation. Added explicity open and close data file calls. Added Unlink call; now freeing resources after close and unlink. Small test script now tests with random bytes.