fixed groups rights bug, commented code, fixed some gui