Support for Groovy

In this commit I added support for Groovy lang and also fixed some minor
things in examples