Enhance type-checking
Fix scope issue
Add missing docblocks
Merge branch 'master' of github.com:BrightFlair/PHP.Gt