added documentation to models and controllers