09: fixed null pointer dereference on load, added error handling
09: fixed foo_read() not upping the mutex
09: fixed foo_write() waiting for \n infinitely