fix typos
fix bug in Eloquent model update routine
refactor the creation of Eloquent models