1st commit: contains visualization code lacking in inOutpt.do