Last fixes, finished client interface with server and added a sample 2nd main for client.