Making mates on assembly by API

Hi all, 

I' m new user of SolidWorks API, and I'm tring to automate a modeling, and I'm need to create mates in the parts. But I'm having some issues on that, how to select faces and creat mates by API ?

Thanks and regards,

Filipe Lazzarini

SolidworksApi/macros