Added options to the model

The options are passed to model via a structure. Undefined options are
assigned default values.