added some simple documentation in io.h