More unit tests and docstrings. Re-organizing code to derive Gr class from Tuple and new class Membered. Membered is a base class modelling objects with members, transferring the methods of the members to the containing class.