Added general phpDoc, added functions to check for permissions, and added permissions to Player model