Fix timing switch bug
Copy app files, fix php array field names