[ext] updated PHP code documenting C code
[ext] code cleaning
[ext] improvements
[ext] fixed tabs
Merge pull request #3 from tucksaun/patch-1

Updating C extension