Fix Resource repr() and add test
Improve documentation