Use opening (and closing) tags on all PHP code blocks.
Add usage section on magic variables.

Fixes #115