added/modified __repr__ and __str__ and use 'format' instead of '%'