added factory.php and removed component helper-loader file and few other fixes in index.php