Better error messages for duplicate ids
Doc tweaks
Correct ordering of row ids. #8