added discussion detail for `str` representation and fixed code
use `repr` for floats (with discussion)
oops, missed list conversion when copying code