PHP5 compatibility and syntax overhaul
Merge pull request #8 from elliottb/3.x-dev

PHP5 compatibility and syntax overhaul