adding public users as friends, code style cleanup