fixing stdio and adding a crude help message