Some tweaks and documentation to layers and components