Adding PHP API and modifying homepage