Fix errors, Add API key authentication, Add test page