This are functions to do Input and output analysis. They were adapted from REAL I-O developed by REAL at the University of Illinois