changes on default pattern
Adding documentation

done with PHPDoc