added documentation in inout.c