Used the ReflectionMethod in-built PHP class to check for public and protected methods before allowing access to the page.
Changed some methods to protected to disallow users from reaching.