Add autoload function to main config file. Add better DIR declarations in config file based on __DIR__ for libs & smarty classes. Load all class files with the new autoload function in header & direct file calls.
All libs/classes have an loop to find the needed previous class file. Smarty test page included.