Fixed typos, missing php tags, etc.