Customise Buddypress Social Theme default pages

I want to customise the ACTIVITY and MESSAGES pages of Buddypress, Social Theme. This page follows the 'Default Template'. Which .php page does this template refer to? and where is it located?