Comments and parameters defined

Have put the TLS psuedocode in (havn't generated the certs yet so can't put in actual file names) and commented it out, and added my comments of understanding. A compilation test on this would be good.