added membership model and tests for calculating
enrich tests
added comments and some attrs
added insterfaces to memberships data
some small fixes