Added some code for nested group handling, updated readme.