Fix Issues #2 and #3

* Fixed error with StringIndexOutOfBoundsException
* Support for cucumber 1.1.2