Added friends function
Added license