Merge pull request #1 from adz/master

Add errbit and role/profile division