Add more documentation about scope hierarchies