Fixed up the Gemfile. Added, then removed, attr_accessible from models. Added annotations to models.
Added some model validations. Added indexes to some database tables.