Improve some docstrings
Add unit tests for __repr__ methods