-Add config.php
-yad.php code cleanup
-add getCriteria() to yad.php