Made the HTTPS stuff a bit shorter.
Got rid of some dead testing code.
Made the code a bit easier to read and conformant with typical style guidelines.
Added an input/output example for of the more complex parser methods.