Made more Model methods usable with method chaining.
Fixed setting attribute properties from database meta data.

Manual setting isRequired value is no longer overridden by optional database
fields. Length settings like 5,2 are now interpreted as a length of 6.
(Length of the field plus 1 for decimal point).
Added some more comments to the demo model and changed attribute types.