Corrected AddContact & AddContactToCategory

Checked that the contact does not exist in the category Public or in the
specified category.
In AddContactToCategory, added the contact to the category Public (if it
does not exist yet)