Added some documentation to elements and scopes.