A little documentation for layer_f