Fixing documentation
Fixing PHP warnings