fixed ascii IO/added binary IO