removed debug code
added role to users. added some more templates.