Introduce SnakGroups into data model

This update extends the data model by grouping snaks. It also fixes some smaller issues in related code. As a side effect, this fixed #44.