buddypress xprofile custom fields

Hello,

Is there documentation some where to add custom fields to the xprofile section.

Example I want to add a phone field with phone validation on it.
So instead of a text area I would have a phone field.. with custom validation code for that.

Thanks
Joe