Fix typos
Fixed typos and added comments
Disallow empty metadata IDs
Closes #781 - gracefully ignore duplicate data points.
Naming and comment cleanup.