Fix joining permissions, add some docs