Added migration for the penalty model, and wrote simple error messages