refactored index files for heroku
moved composer to root for heroku