Improved buddy handling when adding new buddies

Query buddy status after a buddy has been added; fix a problem with
duplicate entries (previous implementation was not correct).
Fixed memory corruption issue
Query buddy name along with buddy status