Added TLS support (closes #1)

Issue #1 is fixed and a small documentation is added.