Fixed HTTPS issues and cleaned up whitespace.