format/2 improved and bin_format/2 added.