Added a multithreaded example, and added comments to examples.
Added the ability to set timeouts for live connections.