implmented __str__ besides an edge case.
implemented is_identity() and inverse().