documentation

added documentation and quicker ways to generate a model state error
alert