Cleanup ifoOpen, add comments