Added some more details to the behaviour of write streams. Renamed public interface functions to have the camio_ prefix.