added blocking for server && added two basic examples