some smaller updates to classes and PHP codes
Merge pull request #3 from TheSerapher/class-updates

some smaller updates to classes and PHP codes