Clean up documents
Added friendship function and tests the friendship function