Updated TypeScript, fixed references, and made PHP doc generator