improve comments
add support for ssl
improve www redirects and ssl