added comments to IO