Updated controllers and models.

Updated App controllers and models files, preparing these for
phpDocumentor, for creating documentation automatically.