Generalise repr
Merge pull request #41 from rhattersley/repr

Generalise repr