finished assigning of access rights, added some comments too