Account for bad math from API. Add comments

@mpatnode-si