added layer.updateFromString

added an UpdateFromString function to the layer class to allow creating
a complete layer with a single call.