Added a mandatory indicator on the columns. Fixes #38.
Added range checking for various field type. Related to #37.