Fix typos, syntax and replace is_decimal with is_float.
Merge pull request #537 from kkitson/documentation-corrections

Fix typos, syntax and replace is_decimal with is_float.