fixed IDEA warnings, fixed code style
added DSL extension points
fixed CodeNarc violations
converted to Groovy
added some tests
introduce api package, added more tests