mainly php files added, minor modifications on GH