The BP_Component class is the basis of getting your plugin initiated into BuddyPress. You extend this class to create custom components. In fact, the core components extend this class to create each core component (members, activity, groups etc.) This is the members component class which extends BP_Component:
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed