added support for generating SSL Certs and a few comments
Cleaned up old unused code