Fix minor issues in binary.rb