Some more changes to visibility and adding documentation