Added format() function.
Merge branch 'format' into edge