Improve documentation for the layer.h file