Small fixes

Use a better argument name. Make __repr__ give repr(), not str() of the
internal data structure.