Added a port getter and modified the protocol getter.

Also added documentation for the 'secure' flag.