Lift IO glob stuff into main() function
add --zontem option