Get rid of MID6 stub
gitignore
Change parameter order to match C standard library
Use memcpy instead of copy loop
Better name
Use correct type and check for read() error