Fixed divide-by-zero problems
Fixed member number update
Minor change
Added support for modifying roles, minor bug fixes