PHPDoc, CS, mistake fixes and other minor improvements

@sandeepone Also need merge to Gleez repo
New feature. WIP. To avoid works for High Load