added __repr__() method and tweaked documentation