Added xml doc. and comments to string formating functions