extract_layer_output function

Extracts values from layer data and organizes layer-wise variables in columns