Adds ssl verification - Fixes #17
Fixes another bug I introduced