Added some documentation (phpdoc)