fixing permissions
adding some doc