1. Added untested, compiled sys_write
2. Fixed bugs in sys_read
3. Other trivial changes