Refactored examples, added TCP/TLS example, pass contexts as array