add support for grep parameters

Changes for issue #8.

Other (minor) changes:

* uncluttered specs/lib (by applying the Ruby style guide)
* extract inline fixture file contents into fixture files