Some cleanup
Documented permissions