Changes to Client composite

Added output object and restructured connect to server function.