Added examples and PHPDoc