Associates layer with molecule. Layers are part of the environment setup: association fails once the environment is attached to a simulation, and a molecule cannot be associated with more than one layer.