Bug #0000268: Code Cleanup in 5.2.x branch
- fixed some PhpDoc comments, that were not matching their method declarations
- fixed some grammatical errors
- most of file system interations (where folder is scanned for a specific content) are replaced with DirectoryIterator (from SPL)