remove println from sample java code
add looooots of tests. make group encode/decode more sensible