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