Added name-match and latest-only option

Should fix issues #129, #139 and #158
Please don't break the library coding standards. The curly brace should be on its own line for classes and methods in PSR-2 (as it was the case before your change).
And moving all chained calls on 1 line does not make sense either. It makes the code totally unreadable