Cleaned up code to be more consistent and target PHP5

This was an extension to the work done in this PR: https://github.com/misterbisson/scriblio/pull/45
Merge pull request #46 from zbtirrell/code-cleanup

Cleaned up code to be more consistent and target PHP5