Added certificates, file permissions and bug fixes

Added certificates
Added file permissions
Bug fixes