added friendships, blocking,requests and pending. added state machine