Improved model: pass attributes to the constructor; improved tests.
Added model static functions.
Added model prototypes.