Added some bits of documentation
Added some PHP doc