Adds diagrams to show changes in RoleModel

The changes from de06927c are detailed here.
Replaces for's with foreach's in RoleModel

Rolemodel was using for loops to loop over arrays. Foreach is better
in php.