added listner code to server. Added input processor to server.