Implemented issue #16 and fixed a bug with setting admins

Implemented issue #16 and fixed a bug with setting admins.