made setfriendname part of public api
check length of name
Merge pull request #604 from JFreegman/master

made setfriendname() part of public api