fixed typos, cleaned php