Fix error messages and fix wget 0 to O