improvement autoload class; getting current base url from function instead of passing string into config.php