fist stab at format

first stab at format.
It doesn't deal with any special formatting label yet