Changed some variable names and fixed php syntax errors.
Leftover updates