added locations folder fixed file name references and bad php practice