Replaced short open tags with standard ones.
Removed all call-time pass-by-references.
Renamed to support case sensitive file systems.
Fixed example. Added formatting.