Added output to the shell script. Testing it in reference.php
Added output. Lots of output. And fixed the PHP reference generator. I think.
Merge branch 'v2'