Scripts for certificate and main page, and fixes added