generateLayerUtterances function

Generates a layer for a given set of utterances