add collection interface
refactaring
update example
update coveralls.php