Added client example
Added connect and close