Permissions fixes and increase in documentation

Please note that there’s a new ADMINUSERNAME variable that you may want
to fill out. It’s on line 35.