added example.php to the repository and optimized the file structure