Added script for running example paths from the config files
Refactoring PHP code