fixed typos, removed trailing php tags, removed old code